This paper summarizes the meaning, generation and judging methods of Nan and INF in C language. Nan in the C language means not a number, which is equivalent to #IND: indeterminate (Windows) generates:An undefined operation was performed on a
Nan indicates not a number.
After Division by zero, the floating point will become Nan (INF ).
You can use the following functions to determine whether the value is Nan (INF ).
Library Function: int _ isnan (double );
Int _ finite (double); // use
Infinity and Nan ProblemsYou want to create or test floating-point numbers with positive infinity, negative infinity, or Nan (not a number).Solution SolutionsPython does not have a special syntax to represent these special floating-point values, but
In the GIS view found that some of the community can not be normal, through the tracking of abnormal cells to find its base station latitude and longitude of the coordinates are -1. #QNAN00000000000无效值, resulting in plot failure, these communities
Matlab often encounter Nan,inf and other special "number", and in C + + also have a corresponding expression: for example, Std::numeric_limits ::quiet_nan (), you can get a floating-point NaN,But recently a strange phenomenon has been found in
ECMAScript is a dynamically typed language built on the basis of 5 simple data types (Undefined, Null, Boolean, Number, String), and a complex data type (Object). This article will review the simple data type, I will try to describe from the
OperatorLearning Essentials:1. What is an expression2. Unary operators3. Arithmetic operators4. Relational operators5. Logical operators6.* Bitwise operators7. Assignment operators8. Other operators9. Operator PrecedenceECMAScript-262 describes a
STR is string s as StringStr.isalnum () All characters are numbers or lettersStr.isalpha () All characters are lettersStr.isdigit () All characters are numbersStr.isspace () All characters are whitespace characters, \ t, \ n, \ rCheck that the
ECMAScript is a dynamic language built on five simple data types (Undefined, Null, Boolean, Number, String) and one complex data type (Object. This article will review simple data types. I will try to describe them from the perspective of
Data types are the foundation of all the complex abstractions you can imagine. In modern programming languages, apart from some simple data types built in the language itself, basically, a language mechanism is provided for customizing data types
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.